Repository navigation
fix(laptop-backups): watchdog covers cold-store-nightly with completion evidence (#9093 step 1) - #10988
Conversation
…on evidence (code#9093 step 1)
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…up-hardening # Conflicts: # nixos/home/laptop-backups-watchdog.sh # nixos/home/laptop-backups-watchdog.test.sh # nixos/home/laptop-backups.nix
What
Step 1 of #9093 (backup-mesh hardening): the #1841 freshness watchdog now covers the cold-store-nightly leg, so the next silent failure of the every-DB Turso export gets named instead of discovered by audit.
The watchdog previously watched only
dashboardandrepo-archive. This adds acold-storejob:cold-store-nightly.timerlast trigger within the threshold.Resultmust besuccessAND the cold-store manifest'stransfer_ledgermust hold a freshbackup-uploadrow (export-turso files one per exported database). A timer trigger alone cannot see the 2026-11-12 failure shape: the timer fired and the service started, but the 30-minute start timeout killed the export mid-flight, filing 2 of 42 databases.cold-storein the watchdog job set whenevercoldStoreNightly.enableis on.Diagnosis recorded on #9093 (task 20293)
TimeoutStartSec30m → 120m (d3fa454) and per-database scratch bounding (b4278bc). The fix reached the running system after 2026-11-12; the 2026-11-15 and 2026-11-16 runs each filed 42/42 databases (manifest transfer-ledger evidence) and the service's lastResultissuccess.~/backups/restic/laptop-state/repo is not orphaned: its writer islaptop-state-backup.timer/.service(code#1849), last run 2026-11-16 05:52 CST with a fresh snapshot + success stamp.Tests
laptop-backups-watchdog.test.sh: all scenarios pass, including 6 new cold-store ones (fresh, stale ledger, failed result, missing manifest, stale timer, not-in-default-set).laptop-backups-watchdog: OK jobs [dashboard,repo-archive,cold-store] fresh within 26h(exit 0).Deployment rides the normal nixos-rebuild from this repo's module, same as every laptop-backups change.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.